package com.atguigu.hellomp;

import com.atguigu.hellomp.entity.User;
import com.atguigu.hellomp.mapper.UserMapper;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

/**
 * author 张英杰
 * date 2025/9/30/周二 14:07
 */
@SpringBootTest
public class T3 {

    @Autowired
    UserMapper userMapper;

    @Test
    public void a(){
        User user = new User();
        user.setName("zhang3");
        user.setAge(20);
        user.setEmail("123");
        userMapper.insert(user);

    }
}
